package com.fly.system.model;

import com.fly.common.model.BaseModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @CLASSNAME: DictKeyModel
 * @author: Fly
 * 日期: 2020/6/21  11:45
 * 描述:
 **/

@Table(name = "dict_value")
public class DictValueModel extends BaseModel {

    /*字典key*/
    @Column(name = "dict_key")
    private String dictKey;

    /*字典值*/
    @Column(name = "dict_value")
    private String dictValue;

    /*字典显示项*/
    @Column(name = "dict_text")
    private String dictText;

    /*字典显示项*/
    @Column(name = "is_order")
    private Integer isOrder;

    public String getDictKey() {
        return dictKey;
    }

    public void setDictKey(String dictKey) {
        this.dictKey = dictKey;
    }

    public String getDictValue() {
        return dictValue;
    }

    public void setDictValue(String dictValue) {
        this.dictValue = dictValue;
    }

    public String getDictText() {
        return dictText;
    }

    public void setDictText(String dictText) {
        this.dictText = dictText;
    }

    public Integer getIsOrder() {
        return isOrder;
    }

    public void setIsOrder(Integer isOrder) {
        this.isOrder = isOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("dictKey", getDictKey())
                .append("dictValue", getDictValue())
                .append("dictText", getDictText())
                .append("dictValue", getDictValue())
                .append("isOrder", getIsOrder())
                .toString();
    }
}
